<template>
  <el-row v-if="loading">
    <el-col :span="12">
      <el-statistic title="processed time:" :value="processTime" suffix="s" />
    </el-col>
    <el-col :span="12">
      <el-button type="danger" @click="this.$emit('cancelProcess')">Cancel Process!</el-button>
    </el-col>
  </el-row>
</template>

<script>
export default {
  props: {
    loading: {
      type: Boolean,
      default: false,
    }, //是否处于加载状态
    processTime: {
      type: Number,
      default: 0,
    },
  },
  data() {
    return {};
  },
  methods: {},
  computed: {},
};
</script>

<style lang="scss" scoped>
.el-row {
  align-items: center;
}
</style>
